#!/bin/bash


case "$1" in 
start)
echo "starting"
python api.py &
;;
stop)
echo "stoping"
lsof -i:5000 | awk '/python/ { print $2 }' | xargs kill
esac

exit 0
